package com.gollum.jpa.annotation;

import com.gollum.jpa.factory.JpaDaoFactoryBean;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

import java.lang.annotation.*;

/**
 * 开启类 jpa自定义封装框架
 *
 * @author Herther
 * @version 1.0.0
 * @ClassName EnableHerterDataJpa.java
 * @createTime 2022年08月06日 22:20:00
 */

@Target({ElementType.TYPE}) //只作用于类上
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Inherited
@EnableJpaRepositories(basePackages = {"com.gollum"},repositoryFactoryBeanClass = JpaDaoFactoryBean.class) // repositoryBaseClass 不加无法使用JpaDao接口作为基类
public @interface EnableGollumaJpaRepositories {
}
